package com.resou.reader.bookdetail.comment.fragment;

import com.resou.reader.api.entry.BaseComment;
import com.resou.reader.api.entry.CommentBean;
import com.resou.reader.base.BaseView;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;

import java.util.List;

/**
 * Author: 萤火虫
 * E-mail:  Allensuns@163.com
 * Description:
 * CreateTime: 2019-04 -10
 **/
public interface IFragmentCommentContract {
    interface IFragmentCommentView extends BaseView {
        /**
         * @param list         数据源
         * @param totalComment 总评论数
         */
        void showComment(List<BaseComment.DataBean> list, String totalComment);

        SmartRefreshLayout getSmartRefreshLayout();

        /***
         * 喜欢成功的回调
         */
        void likePariseSuccess();


    }

    interface IFragmentCommentPresenter {

        /**
         * 评论列表接口
         *
         * @param bookId
         * @param type
         * @param page
         */
        void quearComment(String bookId, String type, int page);

        /***
         * 点赞接口
         *
         * @param status    状态
         * @param commentId 评论id
         */
        void remoteLikeParise(int status, int commentId);


    }
}
